package com.hnas.eCard.orm;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.hnas.core.orm.BaseEntity;

/**
 * 卡转赠轨迹表
 * 
 * @author
 *
 */
@Entity
@Table(name = "tbl_card_trail")
public class CardTrail extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name = "id", length=32)
	private String id; // 主键id

	@Column(name = "send_acc_id", length=32)
	private String sendAccId; // 赠送人用户Id

	@Column(name = "send_phone_no", length=20)
	private String sendPhoneNo; // 赠送人手机号

	@Column(name = "send_name", length=200)
	private String sendName; // 赠送人姓名

	@Column(name = "send_card_no", length=25)
	private String sendCardNo; // 赠送卡号

	@Column(name = "send_msg")
	private String sendMsg; // 赠言
	
	@Column(name = "receive_acc_id", length=32)
	private String receiveAccId; // 收赠人用户Id

	@Column(name = "receive_phone_no", length=20)
	private String receivePhoneNo; // 收赠人手机号

	@Column(name = "receive_name", length=200)
	private String receiveName; // 收赠人姓名
	
	@Column(name = "status", length=2)
	private String status; // 转赠状态 1、领取中/赠送中(已赠送，对方未领取) 2、已领取/已赠送，对方已领取 3、已收到，拒绝领取/赠送拒绝(已赠送，对方拒绝) 4、取消赠送
	
	@Column(name = "current_balance")
	private String currentBalance; // 当前卡余额 单位：分
	
	private String remark; // 备注
	
	@Column(name = "open_id", length=200)
	private String openId; // 微信公众号OPENID
	
	@Column(name = "sort")
	private int sort;
	
	@Column(name = "create_type")
	private int createType;//轨迹创建方式0-正常赠送1-购买给他人
	@Column(name = "send_wx_name")
	private String sendWxName;//赠送人微信昵称
	@Column(name = "send_wx_image")
	private String sendWxImage;//赠送人微信头像url
	@Column(name = "receive_wx_name")
	private String receiveWxName;//领取人微信昵称
	@Column(name = "receive_wx_image")
	private String receiveWxImage;//领取人微信头像url
	@Column(name = "share_code")
	private String shareCode;//分享码
	
	public String getReceiveAccId() {
		return receiveAccId;
	}

	public void setReceiveAccId(String receiveAccId) {
		this.receiveAccId = receiveAccId;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getSendAccId() {
		return sendAccId;
	}

	public void setSendAccId(String sendAccId) {
		this.sendAccId = sendAccId;
	}

	public String getSendPhoneNo() {
		return sendPhoneNo;
	}

	public void setSendPhoneNo(String sendPhoneNo) {
		this.sendPhoneNo = sendPhoneNo;
	}

	public String getSendName() {
		return sendName;
	}

	public void setSendName(String sendName) {
		this.sendName = sendName;
	}

	public String getSendCardNo() {
		return sendCardNo;
	}

	public void setSendCardNo(String sendCardNo) {
		this.sendCardNo = sendCardNo;
	}

	public String getSendMsg() {
		return sendMsg;
	}

	public void setSendMsg(String sendMsg) {
		this.sendMsg = sendMsg;
	}

	public String getReceivePhoneNo() {
		return receivePhoneNo;
	}

	public void setReceivePhoneNo(String receivePhoneNo) {
		this.receivePhoneNo = receivePhoneNo;
	}

	public String getReceiveName() {
		return receiveName;
	}

	public void setReceiveName(String receiveName) {
		this.receiveName = receiveName;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public String getCurrentBalance() {
		return currentBalance;
	}

	public void setCurrentBalance(String currentBalance) {
		this.currentBalance = currentBalance;
	}

	public int getSort() {
		return sort;
	}

	public void setSort(int sort) {
		this.sort = sort;
	}

	public int getCreateType() {
		return createType;
	}

	public void setCreateType(int createType) {
		this.createType = createType;
	}

	public String getSendWxName() {
		return sendWxName;
	}

	public void setSendWxName(String sendWxName) {
		this.sendWxName = sendWxName;
	}

	public String getSendWxImage() {
		return sendWxImage;
	}

	public void setSendWxImage(String sendWxImage) {
		this.sendWxImage = sendWxImage;
	}

	public String getReceiveWxName() {
		return receiveWxName;
	}

	public void setReceiveWxName(String receiveWxName) {
		this.receiveWxName = receiveWxName;
	}

	public String getReceiveWxImage() {
		return receiveWxImage;
	}

	public void setReceiveWxImage(String receiveWxImage) {
		this.receiveWxImage = receiveWxImage;
	}

	public String getShareCode() {
		return shareCode;
	}

	public void setShareCode(String shareCode) {
		this.shareCode = shareCode;
	}

	@Override
	public String toString() {
		return "CardTrail [id=" + id + ", sendAccId=" + sendAccId + ", sendPhoneNo=" + sendPhoneNo + ", sendName=" + sendName + ", sendCardNo=" + sendCardNo + ", sendMsg=" + sendMsg
				+ ", receiveAccId=" + receiveAccId + ", receivePhoneNo=" + receivePhoneNo + ", receiveName=" + receiveName + ", status=" + status + ", currentBalance=" + currentBalance + ", remark="
				+ remark + ", openId=" + openId + "]";
	}
	
}
